(function() {
    var h = this;
    var aa = function(a, b, d) {
        a.addEventListener ? a.addEventListener(b, d, !1) : a.attachEvent && a.attachEvent("on" + b, d)
    };
    var l = function(a) {
        return {
            visible: 1,
            hidden: 2,
            prerender: 3,
            preview: 4
        } [a.webkitVisibilityState || a.mozVisibilityState || a.visibilityState || ""] || 0
    },
    ba = function(a) {
        var b;
        a.mozVisibilityState ? b = "mozvisibilitychange": a.webkitVisibilityState ? b = "webkitvisibilitychange": a.visibilityState && (b = "visibilitychange");
        return b
    },
    m = function(a, b) {
        if (3 == l(b)) return ! 1;
        a();
        return ! 0
    },
    ca = function(a, b) {
        if (!m(a, b)) {
            var d = !1,
            c = ba(b),
            e = function() {
                if (!d && m(a, b)) {
                    d = !0;
                    var f = e;
                    b.removeEventListener ? b.removeEventListener(c, f, !1) : b.detachEvent && b.detachEvent("on" + c, f)
                }
            };
            c && aa(b, c, e)
        }
    };
    var q = function(a) {
        a = parseFloat(a);
        return isNaN(a) || 1 < a || 0 > a ? 0 : a
    };
    var da = q("0.04"),
    ga = q("0.02"),
    ha = q("0.01");
    var ia = /^true$/.test("true") ? !0 : !1;
    var r = String.prototype.trim ?
    function(a) {
        return a.trim()
    }: function(a) {
        return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g, "")
    },
    u = function(a, b) {
        return a < b ? -1 : a > b ? 1 : 0
    };
    var v;
    a: {
        var w = h.navigator;
        if (w) {
            var x = w.userAgent;
            if (x) {
                v = x;
                break a
            }
        }
        v = ""
    };
    var y = function(a) {
        y[" "](a);
        return a
    };
    y[" "] = function() {};
    var ka = function(a, b) {
        var d = ja;
        Object.prototype.hasOwnProperty.call(d, a) || (d[a] = b(a))
    };
    var la = -1 != v.indexOf("Opera"),
    z = -1 != v.indexOf("Trident") || -1 != v.indexOf("MSIE"),
    ma = -1 != v.indexOf("Edge"),
    A = -1 != v.indexOf("Gecko") && !( - 1 != v.toLowerCase().indexOf("webkit") && -1 == v.indexOf("Edge")) && !( - 1 != v.indexOf("Trident") || -1 != v.indexOf("MSIE")) && -1 == v.indexOf("Edge"),
    na = -1 != v.toLowerCase().indexOf("webkit") && -1 == v.indexOf("Edge"),
    B = function() {
        var a = h.document;
        return a ? a.documentMode: void 0
    },
    C;
    a: {
        var D = "",
        E = function() {
            var a = v;
            if (A) return /rv\:([^\);]+)(\)|;)/.exec(a);
            if (ma) return /Edge\/([\d\.]+)/.exec(a);
            if (z) return /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);
            if (na) return /WebKit\/(\S+)/.exec(a);
            if (la) return /(?:Version)[ \/]?(\S+)/.exec(a)
        } ();
        E && (D = E ? E[1] : "");
        if (z) {
            var F = B();
            if (null != F && F > parseFloat(D)) {
                C = String(F);
                break a
            }
        }
        C = D
    }
    var G = C,
    ja = {},
    H = function(a) {
        ka(a,
        function() {
            for (var b = 0,
            d = r(String(G)).split("."), c = r(String(a)).split("."), e = Math.max(d.length, c.length), f = 0; 0 == b && f < e; f++) {
                var g = d[f] || "",
                k = c[f] || "";
                do {
                    g = /(\d*)(\D*)(.*)/.exec(g) || ["", "", "", ""];
                    k = /(\d*)(\D*)(.*)/.exec(k) || ["", "", "", ""];
                    if (0 == g[0].length && 0 == k[0].length) break;
                    b = u(0 == g[1].length ? 0 : parseInt(g[1], 10), 0 == k[1].length ? 0 : parseInt(k[1], 10)) || u(0 == g[2].length, 0 == k[2].length) || u(g[2], k[2]);
                    g = g[3];
                    k = k[3]
                } while ( 0 == b )
            }
            return 0 <= b
        })
    },
    I = h.document,
    oa = I && z ? B() || ("CSS1Compat" == I.compatMode ? parseInt(G, 10) : 5) : void 0;
    var J;
    if (! (J = !A && !z)) {
        var K;
        if (K = z) K = 9 <= Number(oa);
        J = K
    }
    J || A && H("1.9.1");
    z && H("9");
    var L = function(a, b) {
        for (var d in a) Object.prototype.hasOwnProperty.call(a, d) && b.call(void 0, a[d], d, a)
    };
    var N = function(a, b, d) {
        for (; 0 <= (b = a.indexOf("fmt", b)) && b < d;) {
            var c = a.charCodeAt(b - 1);
            if (38 == c || 63 == c) if (c = a.charCodeAt(b + 3), !c || 61 == c || 38 == c || 35 == c) return b;
            b += 4
        }
        return - 1
    },
    O = /#|$/,
    pa = /[?&]($|#)/;
    var qa = function() {
        this.b = {};
        this.a = {};
        this.c = !1;
        for (var a = [1, 2, 3], b = 0, d = a.length; b < d; ++b) this.a[a[b]] = ""
    },
    Q = function(a, b, d) {
        var c = P;
        if (!c.c && (d ? c.a.hasOwnProperty(d) && "" == c.a[d] : 1)) {
            var e;
            a: {
                try {
                    var f = window.top.location.hash;
                    if (f) {
                        var g = f.match(/\bdeid=([\d,]+)/);
                        e = g && g[1] || "";
                        break a
                    }
                } catch(p) {}
                e = ""
            }
            if (e = (e = e.match(new RegExp("\\b(" + a.join("|") + ")\\b"))) && e[0] || null) a = e;
            else a: {
                if (! (1E-4 > Math.random()) && (e = Math.random(), e < b)) {
                    b = window;
                    try {
                        var k = new Uint32Array(1);
                        b.crypto.getRandomValues(k);
                        e = k[0] / 65536 / 65536
                    } catch(p) {
                        e = Math.random()
                    }
                    a = a[Math.floor(e * a.length)];
                    break a
                }
                a = null
            }
            a && "" != a && (d ? c.a.hasOwnProperty(d) && (c.a[d] = a) : c.b[a] = !0)
        }
    },
    R = function(a) {
        var b = P;
        return b.a.hasOwnProperty(a) ? b.a[a] : ""
    },
    ra = function() {
        var a = P,
        b = [];
        L(a.b,
        function(a, c) {
            b.push(c)
        });
        L(a.a,
        function(a) {
            "" != a && b.push(a)
        });
        return b
    };
    var P, S = "google_conversion_id google_conversion_format google_conversion_type google_conversion_order_id google_conversion_language google_conversion_value google_conversion_currency google_conversion_domain google_conversion_label google_conversion_color google_disable_viewthrough google_enable_display_cookie_match google_remarketing_only google_remarketing_for_search google_conversion_items google_custom_params google_conversion_date google_conversion_time google_conversion_js_version onload_callback opt_image_generator google_conversion_page_url google_conversion_referrer_url".split(" "),
    T = ["google_conversion_first_time", "google_conversion_snippets"];
    function U(a) {
        return null != a ? encodeURIComponent(a.toString()) : ""
    }
    function V(a) {
        return null != a ? a.toString().substring(0, 512) : ""
    }
    function W(a, b) {
        var d = U(b);
        if ("" != d) {
            var c = U(a);
            if ("" != c) return "&".concat(c, "=", d)
        }
        return ""
    }
    function X(a) {
        var b = typeof a;
        return null == a || "object" == b || "function" == b ? null: String(a).replace(/,/g, "\\,").replace(/;/g, "\\;").replace(/=/g, "\\=")
    }
    function sa(a) {
        var b;
        if ((a = a.google_custom_params) && "object" == typeof a && "function" != typeof a.join) {
            var d = [];
            for (b in a) if (Object.prototype.hasOwnProperty.call(a, b)) {
                var c = a[b];
                if (c && "function" == typeof c.join) {
                    for (var e = [], f = 0; f < c.length; ++f) {
                        var g = X(c[f]);
                        null != g && e.push(g)
                    }
                    c = 0 == e.length ? null: e.join(",")
                } else c = X(c); (e = X(b)) && null != c && d.push(e + "=" + c)
            }
            b = d.join(";")
        } else b = "";
        return "" == b ? "": "&".concat("data=", encodeURIComponent(b))
    }
    function Y(a) {
        return "number" != typeof a && "string" != typeof a ? "": U(a.toString())
    }
    function ta(a) {
        if (!a) return "";
        a = a.google_conversion_items;
        if (!a) return "";
        for (var b = [], d = 0, c = a.length; d < c; d++) {
            var e = a[d],
            f = [];
            e && (f.push(Y(e.value)), f.push(Y(e.quantity)), f.push(Y(e.item_id)), f.push(Y(e.adwords_grouping)), f.push(Y(e.sku)), b.push("(" + f.join("*") + ")"))
        }
        return 0 < b.length ? "&item=" + b.join("") : ""
    }
    function ua(a, b, d) {
        var c = [];
        if (a) {
            var e = a.screen;
            e && (c.push(W("u_h", e.height)), c.push(W("u_w", e.width)), c.push(W("u_ah", e.availHeight)), c.push(W("u_aw", e.availWidth)), c.push(W("u_cd", e.colorDepth)));
            a.history && c.push(W("u_his", a.history.length))
        }
        d && "function" == typeof d.getTimezoneOffset && c.push(W("u_tz", -d.getTimezoneOffset()));
        b && ("function" == typeof b.javaEnabled && c.push(W("u_java", b.javaEnabled())), b.plugins && c.push(W("u_nplug", b.plugins.length)), b.mimeTypes && c.push(W("u_nmime", b.mimeTypes.length)));
        return c.join("")
    }
    function va(a) {
        a = a ? a.title: "";
        if (void 0 == a || "" == a) return "";
        var b = function(a) {
            try {
                return decodeURIComponent(a),
                !0
            } catch(e) {
                return ! 1
            }
        };
        a = encodeURIComponent(a);
        for (var d = 256; ! b(a.substr(0, d));) d--;
        return "&tiba=" + a.substr(0, d)
    }
    function wa(a, b, d, c) {
        var e = "";
        if (b) {
            var f;
            if (a.top == a) f = 0;
            else {
                var g = a.location.ancestorOrigins;
                if (g) f = g[g.length - 1] == a.location.origin ? 1 : 2;
                else {
                    g = a.top;
                    try {
                        var k;
                        if (k = !!g && null != g.location.href) c: {
                            try {
                                y(g.foo);
                                k = !0;
                                break c
                            } catch(p) {}
                            k = !1
                        }
                        f = k
                    } catch(p) {
                        f = !1
                    }
                    f = f ? 1 : 2
                }
            }
            a = d ? d: 1 == f ? a.top.location.href: a.location.href;
            e += W("frm", f);
            e += W("url", V(a));
            e += W("ref", V(c || b.referrer))
        }
        return e
    }
    function Z(a, b) {
        return ! (ia || b && xa.test(navigator.userAgent)) || a && a.location && a.location.protocol && "https:" == a.location.protocol.toString().toLowerCase() ? "https:": "http:"
    }
    function ya(a, b, d) {
        d = d.google_remarketing_only ? "googleads.g.doubleclick.net": d.google_conversion_domain || "www.googleadservices.com";
        return Z(a, /www[.]googleadservices[.]com/i.test(d)) + "//" + d + "/pagead/" + b
    }
    function za(a, b, d, c) {
        var e = "/?";
        "landing" == c.google_conversion_type && (e = "/extclk?");
        var e = ya(a, [c.google_remarketing_only ? "viewthroughconversion/": "conversion/", U(c.google_conversion_id), e, "random=", U(c.google_conversion_time)].join(""), c),
        f;
        a: {
            f = c.google_conversion_language;
            if (null != f) {
                f = f.toString();
                if (2 == f.length) {
                    f = W("hl", f);
                    break a
                }
                if (5 == f.length) {
                    f = W("hl", f.substring(0, 2)) + W("gl", f.substring(3, 5));
                    break a
                }
            }
            f = ""
        }
        a = [W("cv", c.google_conversion_js_version), W("fst", c.google_conversion_first_time), W("num", c.google_conversion_snippets), W("fmt", c.google_conversion_format), W("value", c.google_conversion_value), W("currency_code", c.google_conversion_currency), W("label", c.google_conversion_label), W("oid", c.google_conversion_order_id), W("bg", c.google_conversion_color), f, W("guid", "ON"), W("disvt", c.google_disable_viewthrough), W("eid", ra().join()), ta(c), ua(a, b, c.google_conversion_date), sa(c), wa(a, d, c.google_conversion_page_url, c.google_conversion_referrer_url), c.google_remarketing_for_search && !c.google_conversion_domain ? "&srr=n": "", va(d)].join("");
        return e + a
    }
    var Aa = function(a, b, d, c, e, f) {
        return '<iframe name="' + a + '" title="' + b + '" width="' + c + '" height="' + e + '" src="' + d + '" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true"' + (f ? ' style="display:none"': "") + ' scrolling="no"></iframe>'
    };
    function Ba(a) {
        return {
            ar: 1,
            bg: 1,
            cs: 1,
            da: 1,
            de: 1,
            el: 1,
            en_AU: 1,
            en_US: 1,
            en_GB: 1,
            es: 1,
            et: 1,
            fi: 1,
            fr: 1,
            hi: 1,
            hr: 1,
            hu: 1,
            id: 1,
            is: 1,
            it: 1,
            iw: 1,
            ja: 1,
            ko: 1,
            lt: 1,
            nl: 1,
            no: 1,
            pl: 1,
            pt_BR: 1,
            pt_PT: 1,
            ro: 1,
            ru: 1,
            sk: 1,
            sl: 1,
            sr: 1,
            sv: 1,
            th: 1,
            tl: 1,
            tr: 1,
            vi: 1,
            zh_CN: 1,
            zh_TW: 1
        } [a] ? a + ".html": "en_US.html"
    }
    var xa = /Android ([01]\.|2\.[01])/i,
    Ca = function(a, b) {
        if (!b.google_remarketing_only || !b.google_enable_display_cookie_match || "376635471" != (P ? R(2) : "")) return "";
        var d = Z(a, !1) + "//bid.g.doubleclick.net/xbbe/pixel?d=KAE";
        return Aa("google_cookie_match_frame", "Google cookie match frame", d, 1, 1, !0)
    };
    function Da(a, b, d, c) {
        3 != c.google_conversion_format || c.google_remarketing_only || c.google_conversion_domain || P && Q(["317150500", "317150501", "317150504", "317150505"], da, 1);
        var e = "";
        c.google_remarketing_only && c.google_enable_display_cookie_match && (P && Q(["376635470", "376635471"], ga, 2), e = Ca(a, c));
        var f = P ? R(1) : "";
        "" !== f || 3 != c.google_conversion_format || c.google_remarketing_only || c.google_conversion_domain || P && Q(["27391101", "27391102"], ha, 3);
        b = za(a, b, d, c);
        var g = function(a, b, c, d) {
            return '<img height="' + c + '" width="' + b + '" border="0" alt="" src="' + a + '"' + (d ? ' style="display:none"': "") + " />"
        };
        return 0 == c.google_conversion_format && null == c.google_conversion_domain ? '<a href="' + (Z(a, !1) + "//services.google.com/sitestats/" + Ba(c.google_conversion_language) + "?cid=" + U(c.google_conversion_id)) + '" target="_blank">' + g(b, 135, 27, !1) + "</a>" + e: 1 < c.google_conversion_snippets || 3 == c.google_conversion_format ? "317150501" == f || "317150504" == f || "317150505" == f ? g(b, 1, 1, !0) + ('<script src="' + b.replace(/(&|\?)fmt=3(&|$)/, "$1fmt=4&adtest=on$2") + '">\x3c/script>') + e: "" === f && Ea(d, b) ? e: g(b, 1, 1, !0) + e: Aa("google_conversion_frame", "Google conversion frame", b, 2 == c.google_conversion_format ? 200 : 300, 2 == c.google_conversion_format ? 26 : 13, !1) + e
    }
    function Fa() {
        return new Image
    }
    function Ea(a, b) {
        if ("27391102" == (P ? R(3) : "")) try {
            var d;
            var c;
            var e = b.search(O),
            f = N(b, 0, e);
            if (0 > f) c = null;
            else {
                var g = b.indexOf("&", f);
                if (0 > g || g > e) g = e;
                f += 4;
                c = decodeURIComponent(b.substr(f, g - f).replace(/\+/g, " "))
            }
            if (3 != c) d = !1;
            else {
                var k = b.search(O);
                c = 0;
                for (var p, e = []; 0 <= (p = N(b, c, k));) e.push(b.substring(c, p)),
                c = Math.min(b.indexOf("&", p) + 1 || k, k);
                e.push(b.substr(c));
                var n = [e.join("").replace(pa, "$1"), "&", "fmt"];
                n.push("=", encodeURIComponent("4"));
                if (n[1]) {
                    var t = n[0],
                    M = t.indexOf("#");
                    0 <= M && (n.push(t.substr(M)), n[0] = t = t.substr(0, M));
                    var ea = t.indexOf("?");
                    0 > ea ? n[1] = "?": ea == t.length - 1 && (n[1] = void 0)
                }
                var fa = a.createElement("script");
                fa.src = n.join("");
                a.getElementsByTagName("script")[0].parentElement.appendChild(fa);
                d = !0
            }
            return d
        } catch(Ma) {}
        return ! 1
    }
    function Ga(a, b) {
        var d = a.opt_image_generator && a.opt_image_generator.call;
        b += W("async", "1");
        var c = Fa;
        d && (c = a.opt_image_generator);
        d = c();
        d.src = b;
        d.onload = function() {}
    }
    function Ha(a, b, d) {
        var c;
        c = [U(d.google_conversion_id), "/?random=", Math.floor(1E9 * Math.random())].join("");
        c = Z(a, !1) + "//www.google.com/ads/user-lists/" + c;
        c += [W("label", d.google_conversion_label), W("fmt", "3"), wa(a, b, d.google_conversion_page_url, d.google_conversion_referrer_url)].join("");
        Ga(d, c)
    }
    function Ia(a) {
        if ("landing" == a.google_conversion_type || !a.google_conversion_id || a.google_remarketing_only && a.google_disable_viewthrough) return ! 1;
        a.google_conversion_date = new Date;
        a.google_conversion_time = a.google_conversion_date.getTime();
        a.google_conversion_snippets = "number" == typeof a.google_conversion_snippets && 0 < a.google_conversion_snippets ? a.google_conversion_snippets + 1 : 1;
        "number" != typeof a.google_conversion_first_time && (a.google_conversion_first_time = a.google_conversion_time);
        a.google_conversion_js_version = "8";
        0 != a.google_conversion_format && 1 != a.google_conversion_format && 2 != a.google_conversion_format && 3 != a.google_conversion_format && (a.google_conversion_format = 1); ! 1 !== a.google_enable_display_cookie_match && (a.google_enable_display_cookie_match = !0);
        P = new qa;
        return ! 0
    }
    function Ja(a) {
        for (var b = 0; b < S.length; b++) a[S[b]] = null
    }
    function Ka(a) {
        for (var b = {},
        d = 0; d < S.length; d++) b[S[d]] = a[S[d]];
        for (d = 0; d < T.length; d++) b[T[d]] = a[T[d]];
        return b
    }
    function La(a) {
        var b = document.getElementsByTagName("head")[0];
        b || (b = document.createElement("head"), document.getElementsByTagName("html")[0].insertBefore(b, document.getElementsByTagName("body")[0]));
        var d = document.createElement("script");
        d.src = ya(window, "conversion_debug_overlay.js", a);
        b.appendChild(d)
    }; (function(a, b, d) {
        if (a) if (null != /[\?&;]google_debug/.exec(document.URL)) La(a);
        else {
            try {
                if (Ia(a)) if (3 == l(d)) {
                    var c = Ka(a),
                    e = "google_conversion_" + Math.floor(1E9 * Math.random());
                    d.write('<span id="' + e + '"></span>');
                    ca(function() {
                        try {
                            var f = d.getElementById(e);
                            f && (f.innerHTML = Da(a, b, d, c), c.google_remarketing_for_search && !c.google_conversion_domain && Ha(a, d, c))
                        } catch(g) {}
                    },
                    d)
                } else d.write(Da(a, b, d, a)),
                a.google_remarketing_for_search && !a.google_conversion_domain && Ha(a, d, a)
            } catch(f) {}
            Ja(a)
        }
    })(window, navigator, document);
}).call(this);